package com.ctg.itrdc.sysmgr.portal.api.service;

import java.util.List;

import com.ctg.itrdc.pasp.core.IBaseService;
import com.ctg.itrdc.pasp.core.PageInfo;
import com.ctg.itrdc.sysmgr.portal.api.dto.SystemRolesDTO;
import com.ctg.itrdc.sysmgr.portal.data.entity.SystemRoles;

public interface ISystemRolesService extends IBaseService<SystemRoles, Long, SystemRolesDTO>{

	public List<SystemRolesDTO> selectBySysUserId(Long sysUserId);

	public List<SystemRolesDTO> selectBySysPostId(Long sysPostId);

	public Long[] selectRoleIdsBySysUserId(Long sysUserId);

	public Long[] selectRoleIdsBySysPostId(Long sysPostId);

	public List<String> getRolesName(Long sysPostId, Long sysUserId);

	public PageInfo<SystemRolesDTO> queryPage4User(SystemRolesDTO dto,Long sysUserId,
			Integer currentPage, Integer perPageNum);

	public PageInfo<SystemRolesDTO> queryPage4Post(SystemRolesDTO dto,Long sysPostId,
			Integer currentPage, Integer perPageNum);
}
